//初始化战役参数

//game,players information
var campaignRoom = null;

//origin campaign Script
var campaign_ori = null;

//tileEngine
var tileEngine = null;

//whole Processes, record the whole war, every step
var wholeProcess = null;

//Batch of directions
var direction = null;

var CampaignSceneInitialize = function(){

	campaignRoom = campaignRoomEngine.CreateCampaignRoom(gameRoom, userSet);
	cc.log(JSON.stringify(campaignRoom));
	
	tileEngine = new TileBox(tileNetType.Hexagon_Vertical, campaign.zone.xsize, campaign.zone.ysize, campaign.zone.base_image, 0);
	CampaignScriptInitialize(tileEngine);
	
	campaign_ori = DeepClone(campaign);
	
	var forceCapture = new ForceCapture(campaign, tileEngine);
	BuildForceInfo(campaign, tileEngine, forceCapture);
	
	wholeProcess = [];
	
	direction = [];
	for (var troopid in campaign.troop)
		direction[troopid] = CreateDirection(campaign.troop[troopid].tileIndex);
};